package com.example.demo.web.exception;

/**
 * @author ayatsuji
 * @date 2022-03-05 22:37
 * @since
 */
public enum ErrorMessage {
    PARAM_ERROR(400, "参数错误"),
    SYSTEM_ERROR(500, "系统内部错误");

    private final int errorCode;
    private final String errorMsg;

    ErrorMessage(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }
}
